﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Diagnostics.CodeAnalysis;

namespace Agility.Web.Services
{
    public class MembershipWrapper : IMembershipWrapper
    {
        [SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification="Method signature is defined by MS.")]
        public MembershipUser CreateUser(string userName, string password, string email, string question, string answer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
        {
            return Membership.CreateUser(userName, password, email, question, answer, true, null, out status);
        }
    }

    public interface IMembershipWrapper
    {
        [SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification="Method signature is defined by MS.")]
        MembershipUser CreateUser(string userName, string password, string email, string question, string answer, bool isApproved, object providerUserKey, out MembershipCreateStatus status);
    }
}